package com.fsxgt.datagrid.executor;

import java.io.IOException;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.fsxgt.datagrid.config.WinHadoopConfig;

@SpringBootApplication

@EnableAutoConfiguration(exclude={
        DataSourceAutoConfiguration.class,
        DataSourceTransactionManagerAutoConfiguration.class,MongoAutoConfiguration.class
})

@EnableConfigurationProperties
@EnableScheduling
@ComponentScan(basePackages = "com.fsxgt.datagrid")
@MapperScan({"com.fsxgt.datagrid.*.dao"})
public class Application {

	
	public static void main(String[] args) throws IOException {
		
		WinHadoopConfig.init();
		ConfigurableApplicationContext cc = SpringApplication.run(Application.class, args);


	}

}
